const { defineConfig } = require("@vue/cli-service");
module.exports = defineConfig({
  transpileDependencies: true,
  devServer: {
    // proxy: "https://sug.so.360.cn",
    proxy: {
      "/api": {
        target: "https://sug.so.360.cn", //要跨域的地址
        changeOrigin: true, //允许跨域
        pathRewrite: {
          "^/api": "",
        },
        //把api替换成""
      },
    },
  },
});
